﻿namespace GreenIsomer.Data.Entities.Ddl {
	using System.Collections.ObjectModel;

	public class ColumnRefCollection : Collection<ColumnRef> {

		public ColumnRefCollection() { }

		public virtual void WriteScript(DdlWriter writer) {
			writer.WriteScript("(");

			for(int i = 0; i < Count; i++) {
				if(i != 0) writer.WriteScript(",");
				writer.WriteName(this[i].Name);
			}

			writer.WriteScript(")");
		}

	}

}